#!/bin/bash

# curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
# curl -fsSL https://ghproxy.cc/https://github.com/docker/docker-install/blob/master/install.sh | bash -s docker --mirror Aliyun
# export DOWNLOAD_URL="https://mirrors.tuna.tsinghua.edu.cn/docker-ce"
# curl -fsSL https://get.docker.com/ | sh
# curl -fsSL https://ghproxy.cc/https://github.com/docker/docker-install/blob/master/install.sh | sh
export DOWNLOAD_URL="http://mirrors.cloud.aliyuncs.com/docker-ce"
curl -fsSL https://ghgo.xyz/https://github.com/docker/docker-install/blob/master/install.sh | sh

# apt update
# apt -y install apt-transport-https ca-certificates curl software-properties-common
# curl -fsSL http://mirrors.cloud.aliyuncs.com/docker-ce/linux/debian/gpg | sudo apt-key add -
# add-apt-repository "deb [arch=amd64] http://mirrors.cloud.aliyuncs.com/docker-ce/linux/debian $(lsb_release -cs) stable"
# apt -y update
# apt -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

echo "Docker installation finish!"